package com.pan.hisystem.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author qingyang
 * @since 2022-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_outpatients")
@ApiModel(value="Outpatients对象", description="")
public class Outpatients implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "就诊id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "就诊卡号")
    private String mid;

    @ApiModelProperty(value = "诊断结果")
    private String diagnosis;

    @ApiModelProperty(value = "主诉")
    private String chiefComplaint;

    @ApiModelProperty(value = "医嘱")
    private String advice;

    @ApiModelProperty(value = "医生id")
    private Integer uid;

    @ApiModelProperty(value = "处方id")
    private Integer preId;

    @ApiModelProperty(value = "检验id")
    private Integer tid;

    @ApiModelProperty(value = "挂号id")
    private Integer rid;

    @ApiModelProperty(value = "就诊状态")
    private Boolean enabled;

    @ApiModelProperty(value = "就诊完成时间")
    @TableField("finally_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime finallyTime;



    @ApiModelProperty(value = "患者化验表")
    @TableField(exist = false)
    private PatientTest patientTest;

    @ApiModelProperty(value = "化验项目")
    @TableField(exist = false)
    private Test test;

    @ApiModelProperty(value = "就诊卡")
    @TableField(exist = false)
    private MedicalCard medicalCard;




}
